package org.ljx.taobao.api.entity;

/**
 * @Author: Ljx
 * @Date: 2021/12/31 12:31
 * @role: 购物车实体
 */
public class Shopping {
    /**
     * 商品id
     */
    private  int id;
    /**
     * 商品名
     */
    private String name;
    /**
     * 商品信息
     */
    private String information;
    /**
     * 商品价格
     */
    private int price;
    /**
     * 商品数量
     */
    private int num;
    /**
     * 商品属实用户id
     */
    private int uid;
    public Shopping() {

    }

    public Shopping(String name, String information, int price, int num) {
        this.name = name;
        this.information = information;
        this.price = price;
        this.num = num;
    }

    public Shopping(String name, String information, int price) {
        this.name = name;
        this.information = information;
        this.price = price;
    }
    public Shopping(String name) {
        this.name = name;
    }
    public Shopping(int id) {
        this.id = id;
    }

    public Shopping(int id, String name, String information, int price, int num) {
        this.id = id;
        this.name = name;
        this.information = information;
        this.price = price;
        this.num = num;
    }


    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getInformation() {
        return information;
    }

    public int getPrice() {
        return price;
    }

    public int getNum() {
        return num;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    @Override
    public String toString() {
        return "Shoping{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", information='" + information + '\'' +
                ", price=" + price +
                ", num=" + num +
                ", uid=" + uid +
                '}';
    }
}
